package com.example.booksystem.service;

import com.example.booksystem.model.User;
import com.example.booksystem.view.Index;

import java.sql.SQLException;
import java.util.List;

public interface UserService {
    User login(User user);

    Integer sign(User user) throws SQLException;
    List<User> users() throws SQLException;
    Boolean toAdmin(Integer id) throws SQLException;
    Boolean toNomal(Integer id) throws SQLException;

    Boolean delete(Integer id) throws SQLException;

    Boolean detele(Integer id) throws SQLException;
}
